require("../../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pagesA/pages/elm/index" ], {
    "2bf3": function(e, t, a) {
        var n = a("78f7");
        a.n(n).a;
    },
    "69d6": function(e, t, a) {
        a.d(t, "b", function() {
            return r;
        }), a.d(t, "c", function() {
            return o;
        }), a.d(t, "a", function() {
            return n;
        });
        var n = {
            sjTabBar: function() {
                return a.e("components/sj-tab-bar/sj-tab-bar").then(a.bind(null, "1ba9"));
            }
        }, r = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    "78f7": function(e, t, a) {},
    a465: function(e, t, a) {
        a.r(t);
        var n, r = a("c6e8"), o = a.n(r);
        for (n in r) "default" !== n && function(e) {
            a.d(t, e, function() {
                return r[e];
            });
        }(n);
        t.default = o.a;
    },
    c230: function(e, t, a) {
        a.r(t);
        var n, r = a("69d6"), o = a("a465");
        for (n in o) "default" !== n && function(e) {
            a.d(t, e, function() {
                return o[e];
            });
        }(n);
        a("2bf3");
        var i = a("f0c5"), r = Object(i.a)(o.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        t.default = r.exports;
    },
    c59d: function(e, t, a) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            a("0cda"), t(a("66fd")), e(t(a("c230")).default);
        }).call(this, a("543d").createPage);
    },
    c6e8: function(e, n, r) {
        (function(i) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var e, g = (e = r("a34a")) && e.__esModule ? e : {
                default: e
            };
            function c(e, t, a, n, r, o, i) {
                try {
                    var g = e[o](i), c = g.value;
                } catch (e) {
                    return a(e), 0;
                }
                g.done ? t(c) : Promise.resolve(c).then(n, r);
            }
            function t(g) {
                return function() {
                    var e = this, i = arguments;
                    return new Promise(function(t, a) {
                        var n = g.apply(e, i);
                        function r(e) {
                            c(n, t, a, r, o, "next", e);
                        }
                        function o(e) {
                            c(n, t, a, r, o, "throw", e);
                        }
                        r(void 0);
                    });
                };
            }
            var d = getApp(), a = {
                data: function() {
                    return {
                        module_name: d.globalData.module_name,
                        showAlert_login: !1,
                        showAlert: !1,
                        userinfo: i.getStorageSync("userinfo"),
                        setting: i.getStorageSync("setting"),
                        wxCode: "",
                        demoHtmlwm: "",
                        demoHtmlsc: "",
                        systemtype: "",
                        p: 0,
                        loadposter: 0,
                        appid_type: 0,
                        qudao_tkl: "",
                        h5: "",
                        is_qudao_tkl: 0,
                        showAlert_taobaoauth: !1,
                        elm_url: [],
                        meituan_url: [],
                        show_poster: !1,
                        currentIndex: 0,
                        tabs: [ "外卖", "果蔬商超" ],
                        mainHeight: 0,
                        pageLoading: !0,
                        pagebgcolor: i.getStorageSync("setting").waimaitt_meituanwm_bgcolor,
                        qrcode: "",
                        elmwmqrcode: "",
                        elmscqrcode: "",
                        elmwmposter: "",
                        elmscposter: "",
                        width: 750,
                        cheight: 1334,
                        widthIn: 300,
                        heightIn: 500,
                        bgColor: "#7ACBDC",
                        bgImg: "",
                        elmwm_act_id: 0,
                        mtpic: 0,
                        contact_title: "",
                        contact_title_text: "",
                        contact_title_desc: "",
                        contact_id: "",
                        contact_type: "",
                        contact_thumb: "",
                        imgSrc: null,
                        rpx2px: 1,
                        context: null,
                        multiple: 1,
                        showToast_login: !1,
                        footerCurrent: 0,
                        pageKey: "",
                        height: "",
                        tabBar: [],
                        sharetitle: "",
                        sharepic: "",
                        speakerMsgs: [],
                        list: []
                    };
                },
                components: {
                    gracePage: (r("e5c8"), r("5f91"), function() {
                        r.e("graceUI/components/gracePage").then(function() {
                            return resolve(r("1021"));
                        }.bind(null, r)).catch(r.oe);
                    }),
                    graceHeader: function() {
                        r.e("graceUI/components/graceHeader").then(function() {
                            return resolve(r("266b"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceNavBar: function() {
                        r.e("graceUI/components/graceNavBar").then(function() {
                            return resolve(r("a631"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceShade: function() {
                        r.e("graceUI/components/graceShade").then(function() {
                            return resolve(r("31ed"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceDialog: function() {
                        r.e("graceUI/components/graceDialog").then(function() {
                            return resolve(r("f85d"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceLoading: function() {
                        r.e("graceUI/components/graceLoading").then(function() {
                            return resolve(r("1d04"));
                        }.bind(null, r)).catch(r.oe);
                    },
                    graceSpeaker: function() {
                        r.e("graceUI/components/graceSpeaker2").then(function() {
                            return resolve(r("a90e"));
                        }.bind(null, r)).catch(r.oe);
                    }
                },
                props: {},
                onPullDownRefresh: function() {},
                onShareAppMessage: function() {
                    var e = "pages/elm/index?uid=" + i.getStorageSync("userinfo").user_id;
                    return {
                        title: this.sharetitle,
                        imageUrl: this.sharepic,
                        path: e
                    };
                },
                onShow: function() {
                    var n = this;
                    return t(g.default.mark(function e() {
                        var t, a;
                        return g.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, n.$onLaunched;

                              case 2:
                                for (n.tabBar = i.getStorageSync("tabbar"), t = 0; t < n.tabBar.list.length; t++) -1 != n.tabBar.list[t].url.indexOf("elm/index") && (n.pageKey = t);
                                -1 != i.getStorageSync("index_nav").indexOf("elmsc") || -1 != i.getStorageSync("index_nav").indexOf("sc") ? n.currentIndex = 1 : i.getStorageSync("index_nav") && (n.currentIndex = 0), 
                                1 == n.currentIndex ? (n.h5 = i.getStorageSync("elmsc_h5"), n.load_elmscqrcode2()) : (n.h5 = i.getStorageSync("elmwm_h5"), 
                                n.load_elmwmqrcode2()), a = d.globalData.util.url("entry/wxapp/api", {
                                    m: d.globalData.module_name,
                                    o: "chkpid"
                                }), i.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: i.getStorageSync("openid")
                                    },
                                    success: function(e) {
                                        e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                        console.log(e), i.setStorageSync("pid_use_time", e), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && (i.setStorageSync("elmwm_url", ""), 
                                        i.setStorageSync("elmsc_url", ""), i.setStorageSync("elmwmposter", ""), i.setStorageSync("elmscposter", ""), 
                                        i.setStorageSync("pid_time", i.getStorageSync("pid_use_time")));
                                    }
                                }), a = d.globalData.util.url("entry/wxapp/api", {
                                    m: d.globalData.module_name,
                                    o: "subscribemessage"
                                }), i.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: i.getStorageSync("openid"),
                                        type: 2
                                    },
                                    success: function(e) {
                                        i.setStorageSync("warn_daynum", e.data.warm_daynum);
                                    }
                                }), i.hideLoading();

                              case 13:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                onReady: function() {
                    var t = this;
                    setTimeout(function() {
                        i.createSelectorQuery().select("#gBody").fields({
                            size: !0
                        }, function(e) {
                            t.mainHeight = e.height;
                        }).exec();
                    }, 1e3), setTimeout(function() {
                        t.pageLoading = !1;
                    }, 1500);
                },
                onLoad: function(r) {
                    var o = this;
                    return t(g.default.mark(function e() {
                        var t, a, n;
                        return g.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, o.$onLaunched;

                              case 2:
                                (t = o).setting = i.getStorageSync("setting"), t.tabBar = i.getStorageSync("tabbar"), 
                                t.userinfo = i.getStorageSync("userinfo"), t.demoHtmlwm = i.getStorageSync("setting").waimaitt_elmwm_notice, 
                                t.demoHtmlsc = i.getStorageSync("setting").waimaitt_elmsc_notice, i.hideLoading(), 
                                o.module_name = d.globalData.module_name, t = o, "sc" == r.to && (o.currentIndex = 1), 
                                o.elmwmqrcode = i.getStorageSync("elmwmqrcode"), o.elmscqrcode = i.getStorageSync("elmscqrcode"), 
                                o.elmwmposter = i.getStorageSync("elmwmposter"), o.elmscposter = i.getStorageSync("elmscposter"), 
                                o.pagebgcolor = i.getStorageSync("setting").waimaitt_elmwm_bgcolor, o.bgImg = i.getStorageSync("setting").waimaitt_elmwm_poster ? i.getStorageSync("setting").waimaitt_elmwm_poster : i.getStorageSync("setting").static_domain + "addons/" + o.module_name + "/static/images/poster/elmwm.png", 
                                a = d.globalData.util.url("entry/wxapp/api", {
                                    m: d.globalData.module_name,
                                    o: "chkpid"
                                }), i.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: i.getStorageSync("openid")
                                    },
                                    success: function(e) {
                                        e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                        console.log(e), i.setStorageSync("pid_use_time", e), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && (i.setStorageSync("elmwm_url", ""), 
                                        i.setStorageSync("elmsc_url", ""), i.setStorageSync("elmwmposter", ""), i.setStorageSync("elmscposter", ""), 
                                        i.setStorageSync("pid_time", i.getStorageSync("pid_use_time")));
                                    }
                                }), n = new Date(new Date().setHours(0, 0, 0, 0)) / 1e3, console.log(n), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && (i.setStorageSync("elmwm_url", ""), 
                                i.setStorageSync("elmsc_url", ""), i.setStorageSync("elmwmposter", ""), i.setStorageSync("elmscposter", "")), 
                                a = d.globalData.util.url("entry/wxapp/speakermsgs", {
                                    m: d.globalData.module_name
                                }), i.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: i.getStorageSync("openid"),
                                        type: 2
                                    },
                                    success: function(e) {
                                        t.speakerMsgs = e.data.speakerMsgs;
                                    }
                                }), a = d.globalData.util.url("entry/wxapp/meituanelmlist", {
                                    m: d.globalData.module_name
                                }), i.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: i.getStorageSync("openid"),
                                        type: 2,
                                        system_type: i.getStorageSync("systemtype")
                                    },
                                    success: function(e) {
                                        t.list = e.data.meituanelmlist;
                                    }
                                });

                              case 29:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                methods: {
                    change: function(e) {
                        var t = this;
                        console.log(this.tabBar.list), console.log(this.tabBar.list[e]);
                        var a = this.tabBar.list[e];
                        if (this.pageKey = e, i.setStorageSync("pageKey", e), i.getStorageSync("userinfo").nickname || 1 != i.getStorageSync("setting").login_type) {
                            if (1 == a.adtype) {
                                if (1 == a.appid_type && i.getStorageSync("mtwm_url")) return void i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: i.getStorageSync("mtwm_url")
                                });
                                if (1 == a.appid_type && !i.getStorageSync("mtwm_url")) return t.appid_type = 1, 
                                void t.meituan_urlFun();
                                if (2 == a.appid_type && i.getStorageSync("mtsc_url")) return void i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: i.getStorageSync("mtsc_url")
                                });
                                if (2 == a.appid_type && !i.getStorageSync("mtsc_url")) return t.appid_type = 2, 
                                void t.meituan_urlFun();
                                if (3 == a.appid_type && i.getStorageSync("elmwm_url")) return i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: i.getStorageSync("elmwm_url")
                                }), t.updatepid(), void console.log(i.getStorageSync("elmwm_url"));
                                if (3 == a.appid_type && !i.getStorageSync("elmwm_url")) return t.appid_type = 3, 
                                void t.gettaobaoauth();
                                if (4 == a.appid_type && i.getStorageSync("elmsc_url")) return i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: i.getStorageSync("elmsc_url")
                                }), t.updatepid(), void console.log(i.getStorageSync("elmsc_url"));
                                if (4 == a.appid_type && !i.getStorageSync("elmsc_url")) return console.log("ccc"), 
                                t.appid_type = 4, void t.gettaobaoauth();
                                if (0 == a.appid_type) return void i.navigateToMiniProgram({
                                    appId: a.appid,
                                    path: a.path
                                });
                            }
                            if (5 != a.adtype) {
                                if (4 == a.adtype) {
                                    if (i.setStorageSync("index_nav", a.url), -1 == a.url.indexOf("../index/") && -1 == a.url.indexOf("../user/") && -1 == a.url.indexOf("../movie/") && -1 == a.url.indexOf("../shop/") && -1 == a.url.indexOf("../kefu/")) return -1 != a.url.indexOf("../../../pages/index/") || -1 != a.url.indexOf("../../../pages/user/") || -1 != a.url.indexOf("../../../pages/kefu/") ? (console.log(a.url), 
                                    void i.redirectTo({
                                        url: a.url
                                    })) : -1 != a.url.indexOf("../../../pages/meituan/") || -1 != a.url.indexOf("../../../pages/elm/") || -1 != a.url.indexOf("../../../pages/eat/") ? (n = a.url.replace("../../../pages/", "../"), 
                                    console.log(a.url), console.log(n), void i.navigateTo({
                                        url: n
                                    })) : -1 != a.url.indexOf("../../pagesA/pages/movie/") || -1 != a.url.indexOf("../../pagesA/pages/shop/") ? (n = a.url.replace("../../pagesA/pages/", "../../../pages/"), 
                                    console.log(a.url), console.log(n), void i.redirectTo({
                                        url: n
                                    })) : -1 != a.url.indexOf("../../pagesA/pages/movieA/") || -1 != a.url.indexOf("../../pagesA/pages/shopA/") || -1 != a.url.indexOf("../../pagesA/pages/meituan/") || -1 != a.url.indexOf("../../pagesA/pages/elm/") || -1 != a.url.indexOf("../../pagesA/pages/eat/") || -1 != a.url.indexOf("../../pagesA/pages/userA/") ? (n = a.url.replace("../../pagesA/pages/", "../"), 
                                    console.log(a.url), console.log(n), void i.navigateTo({
                                        url: n
                                    })) : (-1 != a.url.indexOf("../meituan/") || -1 != a.url.indexOf("../elm/") || a.url.indexOf("../eat/"), 
                                    console.log(a.url), void i.navigateTo({
                                        url: a.url
                                    }));
                                    var n = a.url.replace("../", "../../../pages/");
                                    return console.log(a.url), console.log(n), void i.redirectTo({
                                        url: n
                                    });
                                }
                                2 != a.adtype && 3 != a.adtype || (n = d.globalData.util.url("entry/wxapp/api", {
                                    m: d.globalData.module_name,
                                    o: "ad_kefubind"
                                }), i.request({
                                    url: n,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        adtype: "ad",
                                        adid: a.adid,
                                        openid: i.getStorageSync("openid")
                                    },
                                    success: function(e) {}
                                }), this.contact_title_desc = "", this.contact_type = "ad", this.contact_id = a.adid, 
                                this.contact_title = a.title, this.contact_title_text = a.title_text, this.contact_title_desc = a.title_desc, 
                                this.contact_thumb = i.getStorageSync("setting").dianwo, this.showDialog3());
                            } else i.navigateTo({
                                url: "../kefu/webview?return_url=" + encodeURIComponent(a.url)
                            });
                        } else this.showDialog2();
                    },
                    fatherHeight: function(e) {
                        this.height = e;
                    },
                    showDialog1: function() {
                        this.$refs.showAlert_taobaoauth.open();
                    },
                    closeDialog1: function() {
                        this.$refs.showAlert_taobaoauth.hide();
                    },
                    showDialog2: function() {
                        this.$refs.showAlert_login.open();
                    },
                    closeDialog2: function() {
                        this.$refs.showAlert_login.hide();
                    },
                    showDialog3: function() {
                        this.$refs.showAlert.open();
                    },
                    closeDialog3: function() {
                        this.$refs.showAlert.hide();
                    },
                    load_elmwmqrcode: function() {
                        var a = this;
                        this.elmwmqrcode = "../../../static/images/loadding-max.gif";
                        var n = this, e = d.globalData.util.url("entry/wxapp/qrcode2", {
                            m: d.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                type: "elmwm",
                                uid: i.getStorageSync("userinfo").user_id
                            },
                            success: function(e) {
                                var t = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), t = JSON.parse(t);
                                console.log(t), n.sharetitle = e.data.sharetitle, n.sharepic = e.data.sharepic, 
                                t.poster_url && t.data ? (n.elmwmqrcode = t.data, i.setStorageSync("elmwmqrcode", t.data), 
                                i.setStorageSync("elmwmposter", t.poster_url)) : n.elmwmqrcode = i.getStorageSync("setting").static_domain + "addons/" + a.module_name + "/static/images/elmwm.png";
                            }
                        });
                    },
                    load_elmscqrcode: function() {
                        this.elmscqrcode = "../../../static/images/loadding-max.gif";
                        var a = this, e = d.globalData.util.url("entry/wxapp/qrcode2", {
                            m: d.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                type: "elmsc",
                                uid: i.getStorageSync("userinfo").user_id
                            },
                            success: function(e) {
                                var t = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), t = JSON.parse(t);
                                console.log(t), a.sharetitle = e.data.sharetitle, a.sharepic = e.data.sharepic, 
                                t.poster_url && t.data ? (a.elmscqrcode = t.data, i.setStorageSync("elmscqrcode", t.data), 
                                i.setStorageSync("elmscposter", t.poster_url)) : a.elmscqrcode = "../../../static/images/elmcs.png";
                            }
                        });
                    },
                    load_elmwmqrcode2: function() {
                        var a, e;
                        i.getStorageSync("elmwmqrcode") || (this.elmwmqrcode = "../../../static/images/loadding-max.gif", 
                        a = this, e = d.globalData.util.url("entry/wxapp/qrcode2", {
                            m: d.globalData.module_name
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                type: "elmwm",
                                uid: i.getStorageSync("userinfo").user_id
                            },
                            success: function(e) {
                                var t = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), t = JSON.parse(t);
                                a.elmwmqrcode = t.data, a.sharetitle = e.data.sharetitle, a.sharepic = e.data.sharepic, 
                                i.setStorageSync("elmwmqrcode", t.data), -1 != t.poster_url.indexOf("elmsc1") && i.getStorageSync("elmwmposter") || i.setStorageSync("elmwmposter", t.poster_url);
                            }
                        }));
                    },
                    load_elmscqrcode2: function() {
                        var a, e;
                        i.getStorageSync("elmscqrcode") || (this.elmscqrcode = "../../../static/images/loadding-max.gif", 
                        a = this, e = d.globalData.util.url("entry/wxapp/qrcode2", {
                            m: d.globalData.module_name
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                type: "elmsc",
                                uid: i.getStorageSync("userinfo").user_id
                            },
                            success: function(e) {
                                var t = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), t = JSON.parse(t);
                                a.elmscqrcode = t.data, a.sharetitle = e.data.sharetitle, a.sharepic = e.data.sharepic, 
                                i.setStorageSync("elmscqrcode", t.data), -1 != t.poster_url.indexOf("elmsc1") && i.getStorageSync("elmscposter") || i.setStorageSync("elmscposter", t.poster_url);
                            }
                        }));
                    },
                    userlogin: function() {
                        !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : this.closeDialog2();
                    },
                    login: function(t) {
                        var a = this;
                        this.closeDialog2(), i.getSetting({
                            success: function(e) {
                                e.authSetting["scope.userInfo"] ? i.getUserInfo({
                                    success: function(e) {
                                        a.userAuth(t, e.userInfo, "login");
                                    }
                                }) : a.userAuth(t, null, "login");
                            }
                        });
                    },
                    getWxCode: function() {
                        var t = this;
                        wx.login({
                            success: function(e) {
                                t.wxCode = e.code;
                            }
                        });
                    },
                    getUserProfile: function() {
                        var a = this;
                        wx.getUserProfile({
                            desc: "请完善会员资料",
                            success: function(e) {
                                console.log(e.userInfo);
                                var t = d.globalData.util.url("entry/wxapp/userinfo2", {
                                    m: d.globalData.module_name
                                }), e = {
                                    avatarUrl: e.userInfo.avatarUrl,
                                    nickName: e.userInfo.nickName,
                                    openid: i.getStorageSync("openid")
                                };
                                i.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: e,
                                    success: function(e) {
                                        1 == e.data.status && (i.setStorageSync("userinfo", e.data.data.userinfo), a.userinfo = e.data.data.userinfo, 
                                        a.closeDialog2(), i.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        }));
                                    }
                                });
                            }
                        });
                    },
                    userAuth: function(a, e, n) {
                        var r = this;
                        "getUserInfo:ok" == a.detail.errMsg ? wx.login({
                            success: function(e) {
                                var t = d.globalData.util.url("entry/wxapp/api", {
                                    m: d.globalData.module_name,
                                    o: "userinfo"
                                }), e = {
                                    code: e.code,
                                    encryptedData: a.detail.encryptedData,
                                    iv: a.detail.iv,
                                    openid: i.getStorageSync("openid"),
                                    invite_uid: wx.getStorageSync("invite_uid")
                                };
                                i.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: e,
                                    success: function(e) {
                                        1 == e.data.status ? (e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                        e = JSON.parse(e), i.setStorageSync("userinfo", e.userinfo), r.userinfo = e.userinfo, 
                                        "login" == n && (r.closeDialog2(), i.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        })), 1 == r.currentIndex ? r.load_elmscqrcode2() : r.load_elmwmqrcode2()) : i.showToast({
                                            title: "您取消了请求",
                                            icon: "none"
                                        });
                                    }
                                });
                            }
                        }) : i.showToast({
                            title: "获取用户信息失败",
                            icon: "none"
                        });
                    },
                    closeAlert: function() {
                        this.closeDialog2();
                    },
                    updatepid: function() {
                        var e = d.globalData.util.url("entry/wxapp/api", {
                            m: d.globalData.module_name,
                            o: "updatepid"
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid")
                            },
                            success: function(e) {}
                        });
                    },
                    lingnextwm: function() {
                        var e;
                        i.getStorageSync("userinfo").nickname || 1 != i.getStorageSync("setting").login_type || !wx.getUserProfile ? (i.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), this.setting.waimaitt_elmwm_lingnextactid ? i.getStorageSync("waimaitt_elmwm_lingnexturl") ? (i.navigateToMiniProgram({
                            appId: i.getStorageSync("setting").waimaitt_elmwm_lingnextappid,
                            path: i.getStorageSync("waimaitt_elmwm_lingnexturl")
                        }), i.hideLoading()) : (e = d.globalData.util.url("entry/wxapp/lingelmnext_url", {
                            m: d.globalData.module_name
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                actid: this.setting.waimaitt_elmwm_lingnextactid
                            },
                            success: function(e) {
                                i.setStorageSync("waimaitt_elmwm_lingnexturl", e.data.data.elmwm_url), i.navigateToMiniProgram({
                                    appId: i.getStorageSync("setting").waimaitt_elmwm_lingnextappid,
                                    path: e.data.data.elmwm_url
                                }), i.hideLoading();
                            }
                        })) : (i.navigateToMiniProgram({
                            appId: i.getStorageSync("setting").waimaitt_elmwm_lingnextappid,
                            path: i.getStorageSync("setting").waimaitt_elmwm_lingnextpath
                        }), i.hideLoading())) : this.showDialog2();
                    },
                    lingnextsc: function() {
                        var e;
                        i.getStorageSync("userinfo").nickname || 1 != i.getStorageSync("setting").login_type || !wx.getUserProfile ? (i.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), this.setting.waimaitt_elmsc_lingnextactid ? i.getStorageSync("waimaitt_elmsc_lingnexturl") ? (i.navigateToMiniProgram({
                            appId: i.getStorageSync("setting").waimaitt_elmsc_lingnextappid,
                            path: i.getStorageSync("waimaitt_elmsc_lingnexturl")
                        }), i.hideLoading()) : (e = d.globalData.util.url("entry/wxapp/lingelmnext_url", {
                            m: d.globalData.module_name
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                actid: this.setting.waimaitt_elmsc_lingnextactid
                            },
                            success: function(e) {
                                i.setStorageSync("waimaitt_elmsc_lingnexturl", e.data.data.elmwm_url), i.navigateToMiniProgram({
                                    appId: i.getStorageSync("setting").waimaitt_elmsc_lingnextappid,
                                    path: e.data.data.elmwm_url
                                }), i.hideLoading();
                            }
                        })) : (i.navigateToMiniProgram({
                            appId: i.getStorageSync("setting").waimaitt_elmsc_lingnextappid,
                            path: i.getStorageSync("setting").waimaitt_elmsc_lingnextpath
                        }), i.hideLoading())) : this.showDialog2();
                    },
                    gethongbao_elmwm: function() {
                        if (i.getStorageSync("userinfo").nickname || 1 != i.getStorageSync("setting").login_type || !wx.getUserProfile) {
                            var a = this;
                            if (0 < i.getStorageSync("setting").warn_tplid.length && i.getStorageSync("warn_daynum") < i.getStorageSync("setting").warn_tpl_daynum) wx.requestSubscribeMessage({
                                tmplIds: i.getStorageSync("setting").warn_tplid,
                                success: function(e) {
                                    if (console.log(e), "reject" == e[i.getStorageSync("setting").warn_yhq_tplid]) {
                                        if (i.showLoading({
                                            title: "加载中...",
                                            mask: !1
                                        }), 0 == a.currentIndex && i.getStorageSync("elmwm_url")) i.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: i.getStorageSync("elmwm_url")
                                        }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmwm_url")); else if (0 == a.currentIndex && !i.getStorageSync("elmwm_url")) return a.appid_type = 3, 
                                        void a.gettaobaoauth();
                                        if (1 == a.currentIndex && i.getStorageSync("elmsc_url")) i.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: i.getStorageSync("elmsc_url")
                                        }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmsc_url")); else if (1 == a.currentIndex && !i.getStorageSync("elmsc_url")) return a.appid_type = 4, 
                                        void a.gettaobaoauth();
                                        var t = d.globalData.util.url("entry/wxapp/api", {
                                            m: d.globalData.module_name,
                                            o: "subscribemessage"
                                        });
                                        i.request({
                                            url: t,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: i.getStorageSync("openid"),
                                                type: 1
                                            },
                                            success: function(e) {
                                                i.setStorageSync("warn_daynum", e.data.warm_daynum);
                                            }
                                        });
                                    } else {
                                        if (i.showLoading({
                                            title: "加载中...",
                                            mask: !1
                                        }), t = d.globalData.util.url("entry/wxapp/api", {
                                            m: d.globalData.module_name,
                                            o: "subscribemessage"
                                        }), i.request({
                                            url: t,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: i.getStorageSync("openid"),
                                                type: 1
                                            },
                                            success: function(e) {
                                                i.setStorageSync("warn_daynum", e.data.warm_daynum);
                                            }
                                        }), 0 == a.currentIndex && i.getStorageSync("elmwm_url")) i.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: i.getStorageSync("elmwm_url")
                                        }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmwm_url")); else if (0 == a.currentIndex && !i.getStorageSync("elmwm_url")) return a.appid_type = 3, 
                                        void a.gettaobaoauth();
                                        if (1 == a.currentIndex && i.getStorageSync("elmsc_url")) i.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: i.getStorageSync("elmsc_url")
                                        }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmsc_url")); else if (1 == a.currentIndex && !i.getStorageSync("elmsc_url")) return a.appid_type = 4, 
                                        void a.gettaobaoauth();
                                    }
                                },
                                fail: function() {
                                    if (i.showLoading({
                                        title: "加载中...",
                                        mask: !1
                                    }), 0 == a.currentIndex && i.getStorageSync("elmwm_url")) i.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: i.getStorageSync("elmwm_url")
                                    }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmwm_url")); else if (0 == a.currentIndex && !i.getStorageSync("elmwm_url")) return a.appid_type = 3, 
                                    void a.gettaobaoauth();
                                    if (1 == a.currentIndex && i.getStorageSync("elmsc_url")) i.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: i.getStorageSync("elmsc_url")
                                    }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmsc_url")); else if (1 == a.currentIndex && !i.getStorageSync("elmsc_url")) return a.appid_type = 4, 
                                    void a.gettaobaoauth();
                                }
                            }); else {
                                i.showLoading({
                                    title: "加载中...",
                                    mask: !1
                                });
                                var e = d.globalData.util.url("entry/wxapp/api", {
                                    m: d.globalData.module_name,
                                    o: "subscribemessage"
                                });
                                if (i.request({
                                    url: e,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: i.getStorageSync("openid"),
                                        type: 2
                                    },
                                    success: function(e) {
                                        i.setStorageSync("warn_daynum", e.data.warm_daynum);
                                    }
                                }), 0 == a.currentIndex && i.getStorageSync("elmwm_url")) i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: i.getStorageSync("elmwm_url")
                                }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmwm_url")); else if (0 == a.currentIndex && !i.getStorageSync("elmwm_url")) return a.appid_type = 3, 
                                void a.gettaobaoauth();
                                if (1 == a.currentIndex && i.getStorageSync("elmsc_url")) i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: i.getStorageSync("elmsc_url")
                                }), i.hideLoading(), a.updatepid(), console.log(i.getStorageSync("elmsc_url")); else if (1 == a.currentIndex && !i.getStorageSync("elmsc_url")) return a.appid_type = 4, 
                                void a.gettaobaoauth();
                            }
                        } else this.showDialog2();
                    },
                    taobaoauth: function() {
                        var t = this;
                        i.setClipboardData({
                            data: this.qudao_tkl,
                            success: function(e) {
                                i.showToast({
                                    title: "复制成功，请打开淘宝APP授权",
                                    icon: "none"
                                }), t.is_qudao_tkl = 1;
                            }
                        });
                    },
                    tapButton: function() {
                        1 == this.currentIndex ? this.h5 = i.getStorageSync("elmsc_h5") : this.h5 = i.getStorageSync("elmwm_h5"), 
                        i.setClipboardData({
                            data: this.h5,
                            success: function(e) {
                                i.showToast({
                                    title: "复制成功",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    copy_wm: function() {
                        if (1 == i.getStorageSync("setting").poster_type) {
                            if (!i.getStorageSync("elmwm_h5")) return void i.showToast({
                                title: "请先生成海报",
                                icon: "none"
                            });
                            var e = i.getStorageSync("elmwm_h5");
                        } else e = i.getStorageSync("setting").waimaitt_elmwm_tuantext_c;
                        i.setClipboardData({
                            data: e,
                            success: function(e) {
                                i.showToast({
                                    title: "复制成功",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    copy_sc: function() {
                        if (1 == i.getStorageSync("setting").poster_type) {
                            if (!i.getStorageSync("elmsc_h5")) return void i.showToast({
                                title: "请先生成海报",
                                icon: "none"
                            });
                            var e = i.getStorageSync("elmsc_h5");
                        } else e = i.getStorageSync("setting").waimaitt_elmsc_tuantext_c;
                        i.setClipboardData({
                            data: e,
                            success: function(e) {
                                i.showToast({
                                    title: "复制成功",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    retaobaoauth: function() {
                        this.is_qudao_tkl = 0, this.qudao_tkl = "", this.gettaobaoauth();
                    },
                    notaobaoauth: function() {
                        3 == this.appid_type && i.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: i.getStorageSync("setting").default_elmwmpath
                        }), 4 == this.appid_type && i.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: i.getStorageSync("setting").default_elmscpath
                        });
                    },
                    taobaoauth_done: function() {
                        var a = this;
                        0 == a.currentIndex ? a.appid_type = 3 : a.appid_type = 4;
                        var e = d.globalData.util.url("entry/wxapp/api", {
                            m: d.globalData.module_name,
                            o: "taobaoauth_done"
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: a.appid_type
                            },
                            success: function(e) {
                                var t;
                                0 != e.data.status ? (t = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                t = JSON.parse(t), 1 == e.data.status ? (3 == a.appid_type && (i.setStorageSync("elmwm_url", t.elmwm_url), 
                                a.elmwmqrcode = t.elmwm_qrcode, a.closeDialog1(), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: t.elmwm_url
                                }), console.log(i.getStorageSync("elmwm_url"))), 4 == a.appid_type && (i.setStorageSync("elmsc_url", t.elmsc_url), 
                                a.elmscqrcode = t.elmsc_qrcode, a.closeDialog1(), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: t.elmsc_url
                                }), console.log(i.getStorageSync("elmsc_url")))) : i.showModal({
                                    title: "提示",
                                    content: "未获取到您的授权信息，请重试！",
                                    showCancel: !1,
                                    success: function(e) {
                                        e.confirm || e.cancel;
                                    }
                                }), i.hideLoading()) : i.showModal({
                                    title: "提示",
                                    content: "未获取到您的授权信息，请重试！",
                                    showCancel: !1,
                                    success: function(e) {
                                        e.confirm || e.cancel;
                                    }
                                });
                            }
                        });
                    },
                    gettaobaoauth: function() {
                        var t = this, a = this;
                        if (0 == a.currentIndex && i.getStorageSync("elmwm_url")) return i.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: i.getStorageSync("elmwm_url")
                        }), i.hideLoading(), void console.log(i.getStorageSync("elmwm_url"));
                        if (1 == a.currentIndex && i.getStorageSync("elmsc_url")) return i.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: i.getStorageSync("elmsc_url")
                        }), i.hideLoading(), void console.log(i.getStorageSync("elmsc_url"));
                        0 == a.currentIndex ? a.appid_type = 3 : a.appid_type = 4;
                        var e = d.globalData.util.url("entry/wxapp/api", {
                            m: d.globalData.module_name,
                            o: "gettaobaoauth"
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: a.appid_type
                            },
                            success: function(e) {
                                1 == e.data.status ? (a.showDialog1(), a.qudao_tkl = e.data.data) : 0 == e.data.status ? i.showToast({
                                    title: "获取授权信息出错",
                                    icon: "none"
                                }) : 2 == e.data.status && (e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                e = JSON.parse(e), 3 == t.appid_type && (i.setStorageSync("elmwm_url", e.elmwm_url), 
                                i.setStorageSync("elmwm_h5", e.elmwm_h5), i.setStorageSync("elmwm_qrcode2", e.elmwm_qrcode), 
                                i.setStorageSync("pid_time", +e.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: e.elmwm_url
                                }), console.log(i.getStorageSync("elmwm_url"))), 4 == t.appid_type && (i.setStorageSync("elmsc_url", e.elmsc_url), 
                                i.setStorageSync("elmsc_h5", e.elmsc_h5), i.setStorageSync("elmsc_qrcode2", e.elmsc_qrcode), 
                                i.setStorageSync("pid_time", +e.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: e.elmsc_url
                                }), console.log(i.getStorageSync("elmsc_url"))));
                            }
                        });
                    },
                    gettaobaoauth1: function(e) {
                        var t = this, a = this;
                        0 == a.currentIndex ? a.appid_type = 3 : a.appid_type = 4;
                        var n = d.globalData.util.url("entry/wxapp/api", {
                            m: d.globalData.module_name,
                            o: "qrcode_mtelm"
                        });
                        i.request({
                            url: n,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: a.appid_type
                            },
                            success: function(e) {
                                1 == e.data.status ? (a.showDialog1(), a.qudao_tkl = e.data.data) : 0 == e.data.status ? i.showToast({
                                    title: "获取授权信息出错",
                                    icon: "none"
                                }) : 2 == e.data.status && (e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                e = JSON.parse(e), 3 == t.appid_type && (i.setStorageSync("elmwm_url", e.elmwm_url), 
                                i.setStorageSync("elmwm_h5", e.elmwm_h5), i.setStorageSync("elmwm_qrcode2", e.elmwm_qrcode), 
                                i.setStorageSync("pid_time", +e.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao)), 4 == t.appid_type && (i.setStorageSync("elmsc_url", e.elmsc_url), 
                                i.setStorageSync("elmsc_h5", e.elmsc_h5), i.setStorageSync("elmsc_qrcode2", e.elmsc_qrcode), 
                                i.setStorageSync("pid_time", +e.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao)));
                            }
                        });
                    },
                    close_poster: function() {
                        this.show_poster = !1;
                    },
                    previewImage: function(e) {
                        i.previewImage({
                            urls: [ e.currentTarget.dataset.src ],
                            current: 0
                        });
                    },
                    navChange: function(e) {
                        i.setStorageSync("index_nav", ""), this.loadposter = 0, this.currentIndex = e, 1 == this.currentIndex ? (this.pagebgcolor = i.getStorageSync("setting").waimaitt_elmsc_bgcolor, 
                        this.bgImg = i.getStorageSync("setting").waimaitt_elmsc_poster ? i.getStorageSync("setting").waimaitt_elmsc_poster : i.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/elmsc.png", 
                        this.qrcode = i.getStorageSync("elmscqrcode"), this.load_elmscqrcode2()) : (this.pagebgcolor = i.getStorageSync("setting").waimaitt_elmwm_bgcolor, 
                        this.bgImg = i.getStorageSync("setting").waimaitt_elmwm_poster ? i.getStorageSync("setting").waimaitt_elmwm_poster : i.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/elmwm.png", 
                        this.qrcode = i.getStorageSync("elmwmqrcode"), this.load_elmwmqrcode2());
                    },
                    swiperChange: function(e) {
                        i.setStorageSync("index_nav", ""), this.loadposter = 0;
                        e = e.detail.current;
                        this.currentIndex = e, 1 == this.currentIndex ? (this.pagebgcolor = i.getStorageSync("setting").waimaitt_elmsc_bgcolor, 
                        this.bgImg = i.getStorageSync("setting").waimaitt_elmsc_poster ? i.getStorageSync("setting").waimaitt_elmsc_poster : i.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/elmsc.png", 
                        this.qrcode = i.getStorageSync("elmscqrcode"), this.elmscposter ? this.imgSrc = this.elmscposter : this.imgSrc = "", 
                        this.load_elmscqrcode2()) : (this.pagebgcolor = i.getStorageSync("setting").waimaitt_elmwm_bgcolor, 
                        this.bgImg = i.getStorageSync("setting").waimaitt_elmwm_poster ? i.getStorageSync("setting").waimaitt_elmwm_poster : i.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/elmwm.png", 
                        this.qrcode = i.getStorageSync("elmwmqrcode"), this.elmwmposter ? this.imgSrc = this.elmwmposter : this.imgSrc = "", 
                        this.load_elmwmqrcode2());
                    },
                    goback: function() {
                        i.navigateBack({});
                    },
                    gohome: function() {
                        i.switchTab({
                            url: "../index/index"
                        });
                    },
                    getposter_elmwm1: function() {
                        var t, e, a = this;
                        i.getStorageSync("userinfo").nickname || 1 != i.getStorageSync("setting").login_type || !wx.getUserProfile ? (e = "", 
                        e = 0 == (t = this).currentIndex ? (t.appid_type = 3, i.getStorageSync("elmwm_qrcode2")) : (t.appid_type = 4, 
                        i.getStorageSync("elmsc_qrcode2")), 1 != i.getStorageSync("setting").poster_type || e || (e = d.globalData.util.url("entry/wxapp/api", {
                            m: d.globalData.module_name,
                            o: "gettaobaoauth"
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: t.appid_type
                            },
                            success: function(e) {
                                1 == e.data.status ? (t.showDialog1(), t.qudao_tkl = e.data.data) : 0 == e.data.status ? i.showToast({
                                    title: "获取授权信息出错",
                                    icon: "none"
                                }) : 2 == e.data.status && (e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                e = JSON.parse(e), 3 == a.appid_type && (i.setStorageSync("elmwm_url", e.elmwm_url), 
                                i.setStorageSync("elmwm_h5", e.elmwm_h5), i.setStorageSync("elmwm_qrcode2", e.elmwm_qrcode), 
                                i.setStorageSync("pid_time", +e.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao), console.log(i.getStorageSync("elmwm_url"))), 
                                4 == a.appid_type && (i.setStorageSync("elmsc_url", e.elmsc_url), i.setStorageSync("elmsc_h5", e.elmsc_h5), 
                                i.setStorageSync("elmsc_qrcode2", e.elmsc_qrcode), i.setStorageSync("pid_time", +e.pid_time), 
                                i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao), console.log(i.getStorageSync("elmsc_url"))));
                            }
                        })), 1 == this.currentIndex ? i.getStorageSync("elmscposter") && -1 != i.getStorageSync("elmscposter").indexOf("mp.weixin") ? i.navigateTo({
                            url: "../movieA/webview?return_url=" + encodeURIComponent(i.getStorageSync("elmscposter"))
                        }) : (i.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), i.getStorageSync("elmscposter") || i.setStorageSync("elmscposter", i.getStorageSync("setting").static_domain + "addons/" + t.module_name + "/static/images/poster/1.png"), 
                        i.getImageInfo({
                            src: i.getStorageSync("elmscposter"),
                            success: function(e) {
                                t.show_poster = !0, t.imgSrc = i.getStorageSync("elmscposter"), t.h5 = i.getStorageSync("elmsc_h5"), 
                                i.hideLoading();
                            },
                            fail: function(e) {
                                t.loadposter = 1, t.getposter_elmwm();
                            }
                        })) : i.getStorageSync("elmwmposter") && -1 != i.getStorageSync("elmwmposter").indexOf("mp.weixin") ? i.navigateTo({
                            url: "../movieA/webview?return_url=" + encodeURIComponent(i.getStorageSync("elmwmposter"))
                        }) : (i.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), i.getStorageSync("elmwmposter") || i.setStorageSync("elmwmposter", i.getStorageSync("setting").static_domain + "addons/" + t.module_name + "/static/images/poster/1.png"), 
                        i.getImageInfo({
                            src: i.getStorageSync("elmwmposter"),
                            success: function(e) {
                                t.show_poster = !0, t.imgSrc = i.getStorageSync("elmwmposter"), t.h5 = i.getStorageSync("elmwm_h5"), 
                                i.hideLoading();
                            },
                            fail: function(e) {
                                t.loadposter = 1, t.getposter_elmwm();
                            }
                        }))) : this.showDialog2();
                    },
                    getposter_elmwm: function() {
                        var t = this;
                        1 == this.currentIndex ? (t.qrcode = t.elmscqrcode, i.getStorageSync("elmscposter") ? -1 != i.getStorageSync("elmscposter").indexOf("mp.weixin") || i.getImageInfo({
                            src: i.getStorageSync("elmscposter"),
                            success: function(e) {
                                t.imgSrc = i.getStorageSync("elmscposter");
                            },
                            fail: function(e) {
                                t.context = i.createCanvasContext("graceCanvas"), t.initSize(), setTimeout(function() {
                                    t.draw();
                                }, 1e3);
                            }
                        }) : (t.context = i.createCanvasContext("graceCanvas"), t.initSize(), setTimeout(function() {
                            t.draw();
                        }, 1e3))) : (t.qrcode = t.elmwmqrcode, i.getStorageSync("elmwmposter") ? -1 != i.getStorageSync("elmwmposter").indexOf("mp.weixin") || i.getImageInfo({
                            src: i.getStorageSync("elmwmposter"),
                            success: function(e) {
                                t.imgSrc = i.getStorageSync("elmwmposter");
                            },
                            fail: function(e) {
                                t.context = i.createCanvasContext("graceCanvas"), t.initSize(), setTimeout(function() {
                                    t.draw();
                                }, 1e3);
                            }
                        }) : (t.context = i.createCanvasContext("graceCanvas"), t.initSize(), setTimeout(function() {
                            t.draw();
                        }, 1e3)));
                    },
                    initSize: function() {
                        this.widthIn = i.upx2px(this.width) * this.multiple, this.heightIn = i.upx2px(this.cheight) * this.multiple;
                    },
                    draw: function() {
                        var e = this;
                        this.step01(), "" != this.bgImg ? this.drawBGIMG(this.bgImg, function() {
                            e.step03();
                        }) : this.step03();
                    },
                    step01: function() {},
                    step03: function() {
                        var r = this;
                        1 == this.currentIndex ? 1 == i.getStorageSync("setting").poster_type ? this.qrcode = i.getStorageSync("elmsc_qrcode2") : this.qrcode = this.elmscqrcode : 1 == i.getStorageSync("setting").poster_type ? this.qrcode = i.getStorageSync("elmwm_qrcode2") : this.qrcode = this.elmwmqrcode, 
                        i.downloadFile({
                            url: this.qrcode,
                            success: function(e) {
                                var t, a, n;
                                200 === e.statusCode && (console.log("ok"), t = 0 == r.currentIndex ? (a = i.getStorageSync("setting").waimaitt_elmwm_poster_qrcode ? i.getStorageSync("setting").waimaitt_elmwm_poster_qrcode : 350, 
                                n = i.getStorageSync("setting").waimaitt_elmwm_poster_qrcodex ? i.getStorageSync("setting").waimaitt_elmwm_poster_qrcodex : 0, 
                                i.getStorageSync("setting").waimaitt_elmwm_poster_qrcodey ? i.getStorageSync("setting").waimaitt_elmwm_poster_qrcodey : 615) : (a = i.getStorageSync("setting").waimaitt_elmsc_poster_qrcode ? i.getStorageSync("setting").waimaitt_elmsc_poster_qrcode : 350, 
                                n = i.getStorageSync("setting").waimaitt_elmsc_poster_qrcodex ? i.getStorageSync("setting").waimaitt_elmsc_poster_qrcodex : 0, 
                                i.getStorageSync("setting").waimaitt_elmsc_poster_qrcodey ? i.getStorageSync("setting").waimaitt_elmsc_poster_qrcodey : 615), 
                                a = i.upx2px(a) * r.multiple, n = i.upx2px(n) * r.multiple, n = (r.widthIn - a + n) / 2, 
                                r.context.drawImage(e.tempFilePath, n, r.heightIn - i.upx2px(t) * r.multiple, a, a), 
                                r.drawIt());
                            },
                            fail: function(e) {
                                console.log(e);
                            }
                        });
                    },
                    drawText: function(e, t, a, n, r, o) {},
                    drawIt: function() {
                        var t = this;
                        this.imgSrc = "", this.context.draw(!0, function() {
                            i.canvasToTempFilePath({
                                x: 0,
                                y: 0,
                                width: t.widthIn,
                                height: t.heightIn,
                                destWidth: t.widthIn,
                                destHeight: t.heightIn,
                                canvasId: "graceCanvas",
                                success: function(e) {
                                    console.log(e), 1 == t.loadposter && (t.show_poster = !0, t.loadposter = 0), 1 == t.currentIndex ? (t.elmscposter = e.tempFilePath, 
                                    t.imgSrc = e.tempFilePath, t.h5 = i.getStorageSync("elmsc_h5"), i.setStorageSync("elmscposter", e.tempFilePath)) : (t.elmwmposter = e.tempFilePath, 
                                    t.imgSrc = e.tempFilePath, i.setStorageSync("elmwmposter", e.tempFilePath), t.h5 = i.getStorageSync("elmwm_h5")), 
                                    setTimeout(function() {
                                        i.hideLoading();
                                    }, 1e3);
                                },
                                fail: function(e) {
                                    console.log(e), i.hideLoading();
                                }
                            });
                        });
                    },
                    drawBGIMG: function(e, a) {
                        var n = this;
                        i.downloadFile({
                            url: e,
                            success: function(t) {
                                200 == t.statusCode && i.getImageInfo({
                                    src: t.tempFilePath,
                                    success: function(e) {
                                        e = n.widthIn / e.width * e.height;
                                        console.log(e), n.context.drawImage(t.tempFilePath, 0, 0, n.widthIn, e), a();
                                    }
                                });
                            }
                        });
                    },
                    openShopad: function(a) {
                        if (i.getStorageSync("userinfo").nickname || 1 != i.getStorageSync("setting").login_type || !wx.getUserProfile) {
                            i.showLoading({
                                title: "加载中...",
                                mask: !1
                            });
                            var n = this;
                            if (1 == a.currentTarget.dataset.is_ios && "ios" == i.getStorageSync("systemtype") && 0 == i.getStorageSync("setting").ios) {
                                var e = d.globalData.util.url("entry/wxapp/api", {
                                    m: d.globalData.module_name,
                                    o: "ad_kefubind"
                                });
                                return i.request({
                                    url: e,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        adtype: "ad",
                                        adid: a.currentTarget.dataset.adid,
                                        openid: i.getStorageSync("openid")
                                    },
                                    success: function(e) {}
                                }), this.contact_type = "ad", this.contact_id = a.currentTarget.dataset.adid, this.contact_title = a.currentTarget.dataset.title, 
                                this.contact_title_text = "暂不支持购买", this.contact_title_desc = "苹果iOS系统手机暂不支持购买，请分享给非iOS系统的微信购买！", 
                                this.contact_thumb = i.getStorageSync("setting").dianwo, i.hideLoading(), void this.showDialog3();
                            }
                            if (1 == a.currentTarget.dataset.adtype) {
                                if (0 < a.currentTarget.dataset.appid_type && a.currentTarget.dataset.appid_type <= 8) {
                                    if (0 == i.getStorageSync("setting").warn_tplid.length) return 1 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtwm_url") ? !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (i.hideLoading(), 
                                    void this.showDialog2()) : (1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                        urls: [ i.getStorageSync("mtwmqrcode2") ]
                                    }) : i.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: i.getStorageSync("mtwm_url")
                                    }), void i.hideLoading()) : 1 != a.currentTarget.dataset.appid_type || i.getStorageSync("mtwm_url") ? 2 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtsc_url") ? (!i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                        urls: [ i.getStorageSync("mtscqrcode2") ]
                                    }) : i.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: i.getStorageSync("mtsc_url")
                                    }), void i.hideLoading()) : 2 != a.currentTarget.dataset.appid_type || i.getStorageSync("mtsc_url") ? 5 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxtuan_url") ? (!i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: i.getStorageSync("mtfxtuan_url")
                                    }), void i.hideLoading()) : 5 != a.currentTarget.dataset.appid_type || i.getStorageSync("mtfxtuan_url") ? 6 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxwm_url") ? (!i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: i.getStorageSync("mtfxwm_url")
                                    }), void i.hideLoading()) : 6 != a.currentTarget.dataset.appid_type || i.getStorageSync("mtfxwm_url") ? 7 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxsc_url") ? (!i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: i.getStorageSync("mtfxsc_url")
                                    }), void i.hideLoading()) : 7 != a.currentTarget.dataset.appid_type || i.getStorageSync("mtfxsc_url") ? 8 == a.currentTarget.dataset.appid_type ? !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (e = d.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                        m: d.globalData.module_name
                                    }), i.request({
                                        url: e,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            adtype: "hotel",
                                            adid: a.currentTarget.dataset.adid,
                                            openid: i.getStorageSync("openid")
                                        },
                                        success: function(e) {}
                                    }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                    n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                    n.contact_thumb = i.getStorageSync("setting").dianwo, i.hideLoading(), void n.showDialog3()) : 3 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmwm_url") ? !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (i.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: i.getStorageSync("elmwm_url")
                                    }), i.hideLoading(), void n.updatepid()) : 3 != a.currentTarget.dataset.appid_type || i.getStorageSync("elmwm_url") ? 4 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmsc_url") ? !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (i.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: i.getStorageSync("elmsc_url")
                                    }), i.hideLoading(), void n.updatepid()) : 4 != a.currentTarget.dataset.appid_type || i.getStorageSync("elmsc_url") ? void i.hideLoading() : !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (n.appid_type = 4, void n.gettaobaoauth()) : !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth()) : !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun()) : !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun()) : !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun()) : !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                    void n.meituan_urlFun()) : !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void i.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                    void n.meituan_urlFun());
                                    if (0 < i.getStorageSync("setting").warn_tplid.length && i.getStorageSync("warn_daynum") < i.getStorageSync("setting").warn_tpl_daynum) wx.requestSubscribeMessage({
                                        tmplIds: i.getStorageSync("setting").warn_tplid,
                                        success: function(e) {
                                            if ("reject" == e[i.getStorageSync("setting").warn_yhq_tplid]) {
                                                if (1 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                                    urls: [ i.getStorageSync("mtwmqrcode2") ]
                                                }) : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtwm_url")
                                                }), void i.hideLoading();
                                                if (1 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (2 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                                    urls: [ i.getStorageSync("mtscqrcode2") ]
                                                }) : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtsc_url")
                                                }), void i.hideLoading();
                                                if (2 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (5 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxtuan_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtfxtuan_url")
                                                }), void i.hideLoading();
                                                if (5 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxtuan_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun());
                                                if (6 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtfxwm_url")
                                                }), void i.hideLoading();
                                                if (6 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun());
                                                if (7 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtfxsc_url")
                                                }), void i.hideLoading();
                                                if (7 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun());
                                                if (8 == a.currentTarget.dataset.appid_type) {
                                                    if (!i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile) return this.showDialog2(), 
                                                    void i.hideLoading();
                                                    var t = d.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                                        m: d.globalData.module_name
                                                    });
                                                    return i.request({
                                                        url: t,
                                                        method: "POST",
                                                        header: {
                                                            "content-type": "application/x-www-form-urlencoded"
                                                        },
                                                        data: {
                                                            adtype: "hotel",
                                                            adid: a.currentTarget.dataset.adid,
                                                            openid: i.getStorageSync("openid")
                                                        },
                                                        success: function(e) {}
                                                    }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                                    n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                                    n.contact_thumb = i.getStorageSync("setting").dianwo, i.hideLoading(), void n.showDialog3();
                                                }
                                                if (3 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (i.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: i.getStorageSync("elmwm_url")
                                                }), i.hideLoading(), void n.updatepid());
                                                if (3 == a.currentTarget.dataset.appid_type && !i.getStorageSync("elmwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth());
                                                if (4 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (i.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: i.getStorageSync("elmsc_url")
                                                }), i.hideLoading(), void n.updatepid());
                                                if (4 == a.currentTarget.dataset.appid_type && !i.getStorageSync("elmsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 4, void n.gettaobaoauth());
                                                i.request({
                                                    url: t,
                                                    method: "POST",
                                                    header: {
                                                        "content-type": "application/x-www-form-urlencoded"
                                                    },
                                                    data: {
                                                        openid: i.getStorageSync("openid"),
                                                        type: 1
                                                    },
                                                    success: function(e) {
                                                        i.setStorageSync("warn_daynum", e.data.warm_daynum), i.hideLoading();
                                                    }
                                                });
                                            } else {
                                                if (t = d.globalData.util.url("entry/wxapp/api", {
                                                    m: d.globalData.module_name,
                                                    o: "subscribemessage"
                                                }), i.request({
                                                    url: t,
                                                    method: "POST",
                                                    header: {
                                                        "content-type": "application/x-www-form-urlencoded"
                                                    },
                                                    data: {
                                                        openid: i.getStorageSync("openid"),
                                                        type: 1
                                                    },
                                                    success: function(e) {
                                                        var t = n.userinfo;
                                                        n.warn_num++, t.s_1_num++, n.userinfo = t, i.setStorageSync("warn_daynum", e.data.warm_daynum), 
                                                        i.hideLoading();
                                                    }
                                                }), 1 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                                    urls: [ i.getStorageSync("mtwmqrcode2") ]
                                                }) : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtwm_url")
                                                }), void i.hideLoading();
                                                if (1 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (2 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                                    urls: [ i.getStorageSync("mtscqrcode2") ]
                                                }) : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtsc_url")
                                                }), void i.hideLoading();
                                                if (2 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (5 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxtuan_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtfxtuan_url")
                                                }), void i.hideLoading();
                                                if (5 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxtuan_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun());
                                                if (6 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtfxwm_url")
                                                }), void i.hideLoading();
                                                if (6 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun());
                                                if (7 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: i.getStorageSync("mtfxsc_url")
                                                }), void i.hideLoading();
                                                if (7 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun());
                                                if (8 == a.currentTarget.dataset.appid_type) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (t = d.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                                    m: d.globalData.module_name
                                                }), i.request({
                                                    url: t,
                                                    method: "POST",
                                                    header: {
                                                        "content-type": "application/x-www-form-urlencoded"
                                                    },
                                                    data: {
                                                        adtype: "hotel",
                                                        adid: a.currentTarget.dataset.adid,
                                                        openid: i.getStorageSync("openid")
                                                    },
                                                    success: function(e) {}
                                                }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                                n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                                n.contact_thumb = i.getStorageSync("setting").dianwo, i.hideLoading(), void n.showDialog3());
                                                if (3 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (i.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: i.getStorageSync("elmwm_url")
                                                }), i.hideLoading(), void n.updatepid());
                                                if (3 == a.currentTarget.dataset.appid_type && !i.getStorageSync("elmwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth());
                                                if (4 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (i.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: i.getStorageSync("elmsc_url")
                                                }), i.hideLoading(), void n.updatepid());
                                                if (4 == a.currentTarget.dataset.appid_type && !i.getStorageSync("elmsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void i.hideLoading()) : (n.appid_type = 4, void n.gettaobaoauth());
                                                i.hideLoading();
                                            }
                                            i.hideLoading();
                                        },
                                        fail: function(e) {
                                            i.hideLoading();
                                        }
                                    }), i.hideLoading(); else {
                                        if (e = d.globalData.util.url("entry/wxapp/api", {
                                            m: d.globalData.module_name,
                                            o: "subscribemessage"
                                        }), i.request({
                                            url: e,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: i.getStorageSync("openid"),
                                                type: 2
                                            },
                                            success: function(e) {
                                                i.setStorageSync("warn_daynum", e.data.warm_daynum), i.hideLoading();
                                            }
                                        }), 1 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                            urls: [ i.getStorageSync("mtwmqrcode2") ]
                                        }) : i.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: i.getStorageSync("mtwm_url")
                                        }), void i.hideLoading();
                                        if (1 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                        void n.meituan_urlFun());
                                        if (2 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? i.previewImage({
                                            urls: [ i.getStorageSync("mtscqrcode2") ]
                                        }) : i.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: i.getStorageSync("mtsc_url")
                                        }), void i.hideLoading();
                                        if (2 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                        void n.meituan_urlFun());
                                        if (5 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxtuan_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: i.getStorageSync("mtfxtuan_url")
                                        }), void i.hideLoading();
                                        if (5 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxtuan_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun());
                                        if (6 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: i.getStorageSync("mtfxwm_url")
                                        }), void i.hideLoading();
                                        if (6 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun());
                                        if (7 == a.currentTarget.dataset.appid_type && i.getStorageSync("mtfxsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : i.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: i.getStorageSync("mtfxsc_url")
                                        }), void i.hideLoading();
                                        if (7 == a.currentTarget.dataset.appid_type && !i.getStorageSync("mtfxsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun());
                                        if (8 == a.currentTarget.dataset.appid_type) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (e = d.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                            m: d.globalData.module_name
                                        }), i.request({
                                            url: e,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                adtype: "hotel",
                                                adid: a.currentTarget.dataset.adid,
                                                openid: i.getStorageSync("openid")
                                            },
                                            success: function(e) {}
                                        }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                        n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                        n.contact_thumb = i.getStorageSync("setting").dianwo, i.hideLoading(), void n.showDialog3());
                                        if (3 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (i.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: i.getStorageSync("elmwm_url")
                                        }), i.hideLoading(), n.updatepid(), void console.log(i.getStorageSync("elmwm_url")));
                                        if (3 == a.currentTarget.dataset.appid_type && !i.getStorageSync("elmwm_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth());
                                        if (4 == a.currentTarget.dataset.appid_type && i.getStorageSync("elmsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (i.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: i.getStorageSync("elmsc_url")
                                        }), i.hideLoading(), n.updatepid(), void console.log(i.getStorageSync("elmsc_url")));
                                        if (4 == a.currentTarget.dataset.appid_type && !i.getStorageSync("elmsc_url")) return !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void i.hideLoading()) : (console.log("ccc"), n.appid_type = 4, void n.gettaobaoauth());
                                        i.hideLoading();
                                    }
                                    i.hideLoading();
                                }
                                if (0 == a.currentTarget.dataset.appid_type) return i.navigateToMiniProgram({
                                    appId: a.currentTarget.dataset.appid,
                                    path: a.currentTarget.dataset.path
                                }), void i.hideLoading();
                                i.hideLoading();
                            }
                            if (5 == a.currentTarget.dataset.adtype) return i.navigateTo({
                                url: "../kefu/webview?return_url=" + encodeURIComponent(a.currentTarget.dataset.url)
                            }), void i.hideLoading();
                            if (4 == a.currentTarget.dataset.adtype) {
                                if (i.setStorageSync("index_nav", a.currentTarget.dataset.url), -1 != a.currentTarget.dataset.url.indexOf("../index/") || -1 != a.currentTarget.dataset.url.indexOf("../meituangroup/") || -1 != a.currentTarget.dataset.url.indexOf("../user/") || -1 != a.currentTarget.dataset.url.indexOf("../movie/") || -1 != a.currentTarget.dataset.url.indexOf("../shop/") || -1 != a.currentTarget.dataset.url.indexOf("../kefu/") || -1 != a.currentTarget.dataset.url.indexOf("../meituan/") || -1 != a.currentTarget.dataset.url.indexOf("../elm/")) return i.navigateTo({
                                    url: a.currentTarget.dataset.url
                                }), void i.hideLoading();
                                if (-1 == a.currentTarget.dataset.url.indexOf("../../../pages/index/") && -1 == a.currentTarget.dataset.url.indexOf("../../../pages/user/") && -1 == a.currentTarget.dataset.url.indexOf("../../../pages/kefu/")) return -1 != a.currentTarget.dataset.url.indexOf("../../../pages/meituan/") || -1 != a.currentTarget.dataset.url.indexOf("../../../pages/elm/") || -1 != a.currentTarget.dataset.url.indexOf("../../../pages/eat/") ? (t = a.currentTarget.dataset.url.replace("../../../pages/", "../../pagesA/pages/"), 
                                i.navigateTo({
                                    url: t
                                })) : -1 != a.currentTarget.dataset.url.indexOf("../../pagesA/pages/movie/") || -1 != a.currentTarget.dataset.url.indexOf("../../pagesA/pages/shop/") ? (t = a.currentTarget.dataset.url.replace("../../pagesA/pages/", "../"), 
                                i.navigateTo({
                                    url: t
                                })) : -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/movieA/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/shopA/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/meituan/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/elm/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/eat/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/userA/") && (-1 != a.currentTarget.dataset.url.indexOf("../meituan/") || -1 != a.currentTarget.dataset.url.indexOf("../elm/") || -1 != a.currentTarget.dataset.url.indexOf("../eat/")) ? (t = a.currentTarget.dataset.url.replace("../", "../../pagesA/pages/"), 
                                i.navigateTo({
                                    url: t
                                })) : i.navigateTo({
                                    url: a.currentTarget.dataset.url
                                }), void i.hideLoading();
                                var t = a.currentTarget.dataset.url.replace("../../../pages/", "../");
                                return i.navigateTo({
                                    url: t
                                }), void i.hideLoading();
                            }
                            2 != a.currentTarget.dataset.adtype && 3 != a.currentTarget.dataset.adtype || (e = d.globalData.util.url("entry/wxapp/api", {
                                m: d.globalData.module_name,
                                o: "ad_kefubind"
                            }), i.request({
                                url: e,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: {
                                    adtype: "ad",
                                    adid: a.currentTarget.dataset.adid,
                                    openid: i.getStorageSync("openid")
                                },
                                success: function(e) {}
                            }), this.contact_title_desc = "", this.contact_type = "ad", this.contact_id = a.currentTarget.dataset.adid, 
                            this.contact_title = a.currentTarget.dataset.title, this.contact_title_text = a.currentTarget.dataset.title_text, 
                            this.contact_title_desc = a.currentTarget.dataset.title_desc, this.contact_thumb = i.getStorageSync("setting").dianwo, 
                            i.hideLoading(), this.showDialog3()), i.hideLoading();
                        } else this.showDialog2();
                    },
                    closeContact: function() {
                        this.closeDialog3();
                    },
                    meituan_urlFun: function() {
                        i.showLoading({
                            title: "加载中...",
                            mask: !1
                        });
                        var t = this;
                        if (1 == t.appid_type && i.getStorageSync("mtwm_url")) return i.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: i.getStorageSync("mtwm_url")
                        }), void i.hideLoading();
                        if (2 == t.appid_type && i.getStorageSync("mtsc_url")) return i.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: i.getStorageSync("mtsc_url")
                        }), void i.hideLoading();
                        var e = d.globalData.util.url("entry/wxapp/api", {
                            m: d.globalData.module_name,
                            o: "qrcode_mtelm"
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: t.appid_type
                            },
                            success: function(e) {
                                e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                console.log("qrcode_mtelm:" + e), 1 == t.appid_type && (i.setStorageSync("mtwm_url", e.mtwm_url), 
                                i.setStorageSync("mtwm_h5", e.mtwm_h5), i.setStorageSync("mtwmqrcode2", e.mtwm_qrcode), 
                                1 == t.mtpic ? i.previewImage({
                                    urls: [ i.getStorageSync("mtwmqrcode2") ]
                                }) : i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.mtwm_url
                                }), i.hideLoading()), 2 == t.appid_type && (i.setStorageSync("mtsc_url", e.mtsc_url), 
                                i.setStorageSync("mtsc_h5", e.mtsc_h5), i.setStorageSync("mtscqrcode2", e.mtsc_qrcode), 
                                1 == t.mtpic ? i.previewImage({
                                    urls: [ i.getStorageSync("mtscqrcode2") ]
                                }) : i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.mtsc_url
                                }), i.hideLoading()), i.hideLoading();
                            }
                        });
                    },
                    meituanfenxiao_urlFun: function() {
                        i.showLoading({
                            title: "加载中...",
                            mask: !1
                        });
                        var t = this;
                        if (5 == t.appid_type && i.getStorageSync("mtfxtuan_url")) return i.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: i.getStorageSync("mtfxtuan_url")
                        }), void i.hideLoading();
                        if (6 == t.appid_type && i.getStorageSync("mtfxwm_url")) return i.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: i.getStorageSync("mtfxwm_url")
                        }), void i.hideLoading();
                        if (7 == t.appid_type && i.getStorageSync("mtfxsc_url")) return i.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: i.getStorageSync("mtfxsc_url")
                        }), void i.hideLoading();
                        var e = d.globalData.util.url("entry/wxapp/meituangroup_url", {
                            m: d.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: t.appid_type
                            },
                            success: function(e) {
                                5 == t.appid_type && (i.setStorageSync("mtfxtuan_url", e.data.miniProgramPath), 
                                i.setStorageSync("mtfxtuan_h5", e.data.commonLink), i.setStorageSync("mtfxtuanqrcode2", e.data.miniProgramQrCode), 
                                i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.data.miniProgramPath
                                }), i.hideLoading()), 6 == t.appid_type && (i.setStorageSync("mtfxwm_url", e.data.miniProgramPath), 
                                i.setStorageSync("mtfxwm_h5", e.data.commonLink), i.setStorageSync("mtfxwmqrcode2", e.data.miniProgramQrCode), 
                                i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.data.miniProgramPath
                                }), i.hideLoading()), 7 == t.appid_type && (i.setStorageSync("mtfxsc_url", e.data.miniProgramPath), 
                                i.setStorageSync("mtfxsc_h5", e.data.commonLink), i.setStorageSync("mtfxscqrcode2", e.data.miniProgramQrCode), 
                                i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.data.miniProgramPath
                                }), i.hideLoading());
                            }
                        });
                    }
                }
            };
            n.default = a;
        }).call(this, r("543d").default);
    }
}, [ [ "c59d", "common/runtime", "common/vendor" ] ] ]);